home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 February: Tool Chest / Dev.CD Feb 00 TC.toast / pc / what's new? / sample code / human interface toolbox / packagetool / sample package / htmlsample sources / makefile < prev    next >
Encoding:
Makefile  |  1999-12-02  |  2.9 KB  |  94 lines

  1. #
  2. #    file MakeFile
  3. #    
  4. #    Description:
  5. #    This file contains the MPW Make build commands for creating
  6. #    the HTMLSample application.
  7. #    
  8. #    HTMLSample is an application illustrating how to use the new
  9. #    HTMLRenderingLib services found in Mac OS 9. HTMLRenderingLib
  10. #    is Apple's light-weight HTML rendering engine capable of
  11. #    displaying HTML files.
  12. #
  13. #    Copyright: © 1999 by Apple Computer, Inc.
  14. #    all rights reserved.
  15. #    
  16. #    Disclaimer:
  17. #    You may incorporate this sample code into your applications without
  18. #    restriction, though the sample code has been provided "AS IS" and the
  19. #    responsibility for its operation is 100% yours.  However, what you are
  20. #    not permitted to do is to redistribute the source as "DSC Sample Code"
  21. #    after having made changes. If you're going to re-distribute the source,
  22. #    we require that you make it clear in the source that the code was
  23. #    descended from Apple Sample Code, but that you've made changes.
  24. #    
  25. #    Change History (most recent first):
  26. #    10/16/99 created
  27. #
  28.  
  29. # PPCObjects contains the names of all the powerpc object files
  30. # generated by the C compiler.  We put all the object files in a
  31. # directory called 'obj'
  32. PPCObjects = :obj:HTMLSample.c.ppc ∂
  33.     :obj:History.c.ppc ∂
  34.     :obj:CIconButtons.c.ppc ∂
  35.     :obj:RenderingWindow.c.ppc ∂
  36.     :obj:AboutBox.c.ppc ∂
  37.     :obj:SampleUtils.c.ppc
  38.  
  39. # CCppc contains the C compiler comand we use for compiling
  40. # the source files.
  41. CCppc  = MrC -w 35 -align power -proto strict 
  42.  
  43. # RezFiles contains a list of the rez files used in this build.
  44. RezFiles = HTMLSample.r
  45.  
  46. # Resources contains a list of all the resource and rez files
  47. # used to build the application
  48. Resources = {RezFiles} HTMLSample.rsrc
  49.  
  50. # resources
  51.  
  52. HTMLSample ƒƒ {Resources} {PPCObjects}
  53.     Rez -t "APPL" -i "{RIncludes}" -o HTMLSample {RezFiles}
  54.  
  55. # object code
  56.  
  57. HTMLSample ƒƒ {Resources} {PPCObjects}
  58.     PPCLink -o HTMLSample ∂
  59.         {PPCObjects} ∂
  60.         {SharedLibraries}NavigationLib ∂
  61.         {SharedLibraries}AppearanceLib ∂
  62.         {SharedLibraries}InterfaceLib ∂
  63.         {SharedLibraries}StdCLib ∂
  64.         {SharedLibraries}MathLib ∂
  65.         {SharedLibraries}HTMLRenderingLib ∂
  66.         {PPCLibraries}PPCCRuntime.o ∂
  67.         {PPCLibraries}PPCToolLibs.o ∂
  68.         {PPCLibraries}StdCRuntime.o
  69.  
  70. # bundle
  71.  
  72. HTMLSample ƒƒ {Resources} {PPCObjects}
  73.     SetFile -t APPL -c vTeZ -a iB HTMLSample
  74.  
  75. # source code
  76.  
  77. :obj:HTMLSample.c.ppc ƒ  HTMLSample.c HTMLSample.h RenderingWindow.h SampleUtils.h
  78.     {CCppc} HTMLSample.c -o :obj:HTMLSample.c.ppc
  79.  
  80. :obj:RenderingWindow.c.ppc ƒ  RenderingWindow.c RenderingWindow.h SampleUtils.h  CIconButtons.h History.h
  81.     {CCppc} RenderingWindow.c -o :obj:RenderingWindow.c.ppc
  82.  
  83. :obj:History.c.ppc ƒ  History.c History.h
  84.     {CCppc} History.c -o :obj:History.c.ppc
  85.  
  86. :obj:CIconButtons.c.ppc ƒ  CIconButtons.c CIconButtons.h
  87.     {CCppc} CIconButtons.c -o :obj:CIconButtons.c.ppc
  88.  
  89. :obj:SampleUtils.c.ppc ƒ  SampleUtils.c SampleUtils.h
  90.     {CCppc} SampleUtils.c -o :obj:SampleUtils.c.ppc
  91.  
  92. :obj:AboutBox.c.ppc ƒ  AboutBox.c AboutBox.h
  93.     {CCppc} AboutBox.c -o :obj:AboutBox.c.ppc
  94.